//Supplementary Table 10

use cfps2010child_201906.dta, clear 
merge m:1 fid using cfps2010famecon_201906
drop if _merge==2
drop _merge
* The individual-level data were obtained from the China Family Panel Studies 2010 baseline survey (CFPS, 2010). Although we are not permitted to share the data, it is available for free at: http://www.isss.pku.edu.cn/cfps/download/login.
merge m:1 wa107acode using birth_province_provincial_variables_merge_to_individuals
drop _merge 

g lincome=ln(indinc_net) 
drop if lincome==.

replace wf805=. if wf805<0
replace wf805=. if wf805==6
replace  wf805=6-wf805

global xi "wa1age gender cfps2010eduy_best lincome"
global xr "latitude longitude area  lgdp_per80 "

mixed wf805  AgriculturalRiskCovered $xi $xr|| wa107acode:, r cluster(wa107acode)
mixed wf805  AgriculturalRiskAffected $xi $xr|| wa107acode:, r cluster(wa107acode)
